<include file="Public:header" /> <include file="Public:left" />
<style>
	td {
		text-align: center;
	}
</style>
<section style="padding-bottom: 30px;">
	<div class="page_title">
		<h2 class="fl">优惠卷列表</h2>
		<form>
			<input type="text" class="page_title_input" name="keyword" placeholder="搜索优惠卷名称" value="{$keyword}" style="line-height: 16px;height: 16px;margin-left: 20px;">
			<select class="page_title_input" name="status">
				<option value="">搜索使用状态</option>
				<option value="1" <if condition="$status eq 1">selected = "selected"</if>>正常使用</option>
				<option value="-1" <if condition="$status eq '0'">selected = "selected"</if>>停用</option>
			</select>
			<input  class="page_title_submit" type="submit" value="搜索" style="height: 24px;width: 55px;line-height: 16px;cursor: pointer;">
		</form>
		<a class="fr" href="/admin/voucher/add_voucher.html">优惠卷添加</a>
	</div>
	<table class="table">
		<tr>
			<th>编号</th>
			<th>优惠卷名称</th>
			<th>满额消费(元)</th>
			<th>抵扣金额(元)</th>
			<th>优惠卷数量</th>
			<th>使用状态</th>
			<th>操作</th>
		</tr>

		<volist name="list" id="vo" key="k">
			<tr>
				<td style="width: 60px;">{$vo.id}</td>
				<td>{$vo.name}</td>
				<td>{$vo.fullmoney}</td>
				<td>{$vo.deduction}</td>
				<td>{$vo.count}</td>
				<td><if condition="$vo.status eq 0">停用<else />正常使用</if></td>
				<td>
					<a href="{:url('Voucher/add_voucher',array('id'=>$vo['id']))}" class="inner_btn">编辑</a>
					<a href="{:url('Voucher/delete_voucher',array('id'=>$vo['id']))}" class="inner_btn">删除</a>
				</td>
			</tr>
		</volist>
	</table>
	{$list->render()}
</section>

</div>
</section>
</body>

</html>